Conversation
ondrejmirtes
left a comment
There was a problem hiding this comment.
ApiInstanceofTypeRule should be made aware of this 😊
b940dc5 to
e8922d3
Compare
e8922d3 to
2cd5ddf
Compare
|
Do you also feel like doing |
Didn't ever need that I guess, but sure I can. In a separate PR? |
|
The mutations look valid, but I don't know how I can change them in bulk. Edit: I guess |
|
I'm not sure how to cover the mutations with tests here. i'm more concerned about the things the issue bot found https://github.com/phpstan/phpstan-src/actions/runs/19215786400, I'm not sure why that's happening. |
|
just a gut feeling in case the 2 above comments regarding behaviour changes are not valid: another source of problems could be
because |
VincentLanglet
left a comment
There was a problem hiding this comment.
In #4547
$expressionType instanceof NeverType
by
!$expressionType->isNever()->no()
But here you're replacing
$type instanceof ErrorType
by
$type->isError()->yes()
How did you choose ? I feel like we should have consistency...
Yeah we should have consistency. In the |
08307bd to
f46acaf
Compare
This one does not add too much value, but I just didn't want to do
instanceof ErrorTypein my extensions 😄